<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div>
      <h1>hello</h1>
      <p>this p</p>
    </div>
    <script>
      const body = document.body;
      const div = body.children[0];
      console.log(div.children);
      console.log(div.previousElementSibling);
      console.log(div.nextElementSibling);
      console.log(div.firstElementChild);
      console.log(div.lastElementChild);

      console.log(document.documentElement.parentNode);
      console.log(document.parentNode);
    </script>
  </body>
</html>
